package org.spring.springboot.app.community.member.dao;

import org.apache.ibatis.annotations.Param;
import org.spring.springboot.app.community.member.domain.po.CommunityMemberPO;
import org.spring.springboot.app.community.member.domain.vo.CommunityMemberVO;
import org.spring.springboot.app.community.member.domain.vo.ExcelCommunityMemberVO;
import org.spring.springboot.app.community.member.domain.vo.SeachCommunityMemberVO;

import java.util.List;

public interface CommunityMemberDao {
    int deleteByPrimaryKey(String id);

    int insert(CommunityMemberPO record);

    int insertSelective(CommunityMemberPO record);

    CommunityMemberPO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CommunityMemberPO record);

    int updateByPrimaryKey(CommunityMemberPO record);

    List<CommunityMemberVO> findAll(SeachCommunityMemberVO searchVo, @Param("pageNum") int pageNum,
                                    @Param("pageSize") int pageSize);

    String getBuilNameBybuId(String buildId);

    List<ExcelCommunityMemberVO> findExcelAllList(String buildId);


    String getMemBerByHouse(String houseId);

    String queryIdBypo(CommunityMemberPO po);

    String getUserIdByMobile(String phone);
}